package pcb.views.sharedAssets 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	import pcb.views.uievents.UIEvent;
	import com.intel.utils.TextRender;
	
	/**
	 * ...
	 * @author dhomanx
	 */
	public class ActivityCard extends MovieClip 
	{
		private var activityCard:ActivityCardMc;
		
		public function ActivityCard() 
		{
			//displayEulaDialog("hello" , "this is a test", "agree", "disagree");
			//displayMessage("hello fintan!");
		}
		
		public function displayEulaDialog(title:String, text:String):void 
		{
			activityCard = new ActivityCardMc();
			activityCard.cardTxt.setStyle("upSkin",Sprite);
			activityCard.cardTxt.setStyle("focusRectSkin",Sprite);
			
			
			if(activityCard.myTextLayout != null) {
				activityCard.myTextLayout.xmlText = text;
			} else {
				activityCard.eulaTxt.htmlText = text;
			}
			
			
			addChild(activityCard);
		}				
	}
	
}